package com.crazyant;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.DisplayMetrics;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.support.v4.app.NavUtils;

public class Inicio extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_inicio);
        
        ImageButton market = (ImageButton) findViewById(R.id.market);
		market.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				Intent i = new Intent("com.crazyant.PERSONALIZAR");
				startActivity(i);
			}
		});
        
        ImageButton play = (ImageButton) findViewById(R.id.play);
		play.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				Intent i = new Intent("com.crazyant.MAPAS");
				startActivity(i);
			}
		});
		
		ImageButton menu = (ImageButton) findViewById(R.id.menu);
		menu.setOnClickListener(new View.OnClickListener() {

			public void onClick(View v) {
				Intent i = new Intent("com.crazyant.CJT_PESTANAS");
				startActivity(i);
			}
		});
    
    }
    
    @Override
	protected void onPause() {
		super.onPause();
	}

	@Override
	protected void onResume() {
		super.onResume();
	}
	
	@Override
	public void onBackPressed() {
		finish();
		//activity transition animation
		super.onBackPressed();
	}
    
}
